package com.rwb.springboot.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Created by ruwenbo on 2018/4/16.
 */
@Controller
public class HelloController {

    @GetMapping({"/demo", "/demo2"})
    @ResponseBody
    public String showHello() {
        return "hello World";
    }
}
